#ifndef __APP_DBG_MP_H__
#define __APP_DBG_MP_H__

#include <rtthread.h>
#include "os_types.h"
#include "os_mq.h"


//message type
typedef enum
{
    APP_DBG_QMT_START = 0,
    APP_DBG_QMT_TIMER,        //定时中断事件
    APP_DBG_QMT_UP_OK,        //上报成功
    APP_DBG_QMT_DISCONN,      //关闭连接事件

    APP_DBG_QMT_RX,           //发送消息
    APP_DBG_QMT_TX,           //接收消息
    APP_DBG_QMT_ASK,          //应答消息

    APP_DBG_QMT_MAX

}dbg_msg_e;


//===========================================================
//函数声明
extern BOOL app_dbg_msg_tab_init();
extern BOOL app_dbg_msg_proc(os_mq_data_pt msg);
extern BOOL app_dbg_timer_msg_post();
extern BOOL app_dbg_up_ok_msg_post();
extern BOOL app_dbg_disconn_msg_post(UINT8 dat);
extern BOOL app_dbg_rx_msg_post(UINT8 cmd, UINT8 *pdata, UINT16 datalen);
extern BOOL app_dbg_tx_msg_post(UINT8 cmd, UINT8 *pdata, UINT16 datalen, UINT8 cnt, UINT16 mill);
extern BOOL app_dbg_ask_msg_post();

extern void app_dbg_tx_reok();
//===========================================================
#endif 

